<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="HandheldFriendly" content="True">
    <link rel="shortcut icon" href="<?php echo urldecode(Url::urlFormat("@favicon.ico"));?>"/>
    <link rel="bookmark" href="<?php echo urldecode(Url::urlFormat("@favicon.ico"));?>" />
<link href="<?php echo urldecode(Url::urlFormat("#css/bootstrap.css"));?>" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("#css/common.css"));?>">
    <link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("#css/font-awesome.min.css"));?>">
    <link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("#js/artdialog/tiny-dialog.css"));?>">
 <link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/font_icon.css"));?>" />
<link href="<?php echo urldecode(Url::urlFormat("#css/city-picker.css"));?>" rel="stylesheet">
<link href="<?php echo urldecode(Url::urlFormat("#css/main.css"));?>" rel="stylesheet">
   <style type="text/css">
        .swiper-container {width: 100%;}
        .js-template{display:none !important;}
    </style>
    <script src="<?php echo urldecode(Url::urlFormat("#js/jquery.min.js"));?>"></script>
    <script src="<?php echo urldecode(Url::urlFormat("#js/artdialog/dialog-plus-min.js"));?>"></script>
    <script src="<?php echo urldecode(Url::urlFormat("#js/common.js"));?>"></script>
    <script src="<?php echo urldecode(Url::urlFormat("#js/tinyslider.js"));?>"></script>
    <!-- <script src="<?php echo urldecode(Url::urlFormat("#js/bootstrap.js"));?>"></script> -->
    <script src="<?php echo urldecode(Url::urlFormat("#js/city-picker.data.js"));?>"></script>
    <script src="<?php echo urldecode(Url::urlFormat("#js/city-picker.js"));?>"></script>
    <script src="<?php echo urldecode(Url::urlFormat("#js/main.js"));?>"></script>
    <script type="text/javascript">
        var server_url = '<?php echo urldecode(Url::urlFormat("@"));?>__con__/__act__';
        var Tiny = {user:{name:'<?php echo isset($user['name'])?$user['name']:'';?>',id:'<?php echo isset($user['id'])?$user['id']:0;?>',online:<?php echo isset($user['id']) && $user['id']?'true':'false';?>}};
    </script>
    <title><?php if(isset($seo_title) && isset($site_title) && ($seo_title == $site_title)){?><?php echo isset($seo_title)?$seo_title:"";?><?php }else{?><?php echo isset($seo_title)?$seo_title:"";?>-<?php echo isset($site_title)?$site_title:"";?><?php }?></title>
</head>

<body>
    <!-- S 头部区域 -->
    <div id="header">
        <div class="topbar">
            <div class="layout-2 container">
                <div class="sub-1">
<div class="docs-methods">
    <form class="form-inline">
        <div id="distpicker">
            <div class="form-group">
                <div style="position: relative;">
                    <input id="city-picker3" class="form-control" readonly type="text" value="" data-toggle="city-picker">
                </div>
            </div>
        </div>
    </form>
</div>
                </div>
                <div class="sub-2">
                    <ul class="nav-x">
                        <!-- 
                        <li class="item down">
                            <a href="<?php echo urldecode(Url::urlFormat("/ucenter"));?>">会员中心<i class="fa">&#xf107;</i></a>
                            <div class="dropdown user-box">
                                <?php $sidebar_nav = array('我的订单'=>'order', '我的关注'=>'attention', '商品咨询'=>'consult', '商品评价'=>'review', '我的消息'=>'message', '收货地址'=>'address', '我的优惠券'=>'voucher', '账户金额'=>'account');?>
                                <ul class="user-center">
                                    <?php foreach($sidebar_nav as $key => $item){?>
                                    <li class="link"><a href="<?php echo urldecode(Url::urlFormat("/ucenter/$item"));?>"><?php echo isset($key)?$key:"";?></a></li>
                                    <?php }?>
                                </ul>
                            </div>
                        </li>
                        <li class="item split"></li>
                        <li class="item down"><a href="">APP下载</a>
                            <div class="dropdown">
                                <img src="">
                            </div>
                        </li>
                        <li class="item split"></li>
                        <li class="item"><a href="<?php echo urldecode(Url::urlFormat("/ucenter/order"));?>">我的订单</a></li>
                        -->
                        <li class="item split"></li>
                        <?php if($user){?>
                        <li class="item"><?php if(isset($user['name'])){?>你好:<a href="<?php echo urldecode(Url::urlFormat("/ucenter/index"));?>"><?php echo isset($user['name'])?$user['name']:"";?></a>
                        进入 <a href="<?php echo urldecode(Url::urlFormat("/ucenter/index"));?>" style="color:red;">个人中心</a>
                         - <?php }?><a href="<?php echo urldecode(Url::urlFormat("/simple/logout"));?>">安全退出</a></li>
                        <?php }else{?>
                        <li class="item"><a class="normal" href="<?php echo urldecode(Url::urlFormat("/simple/login"));?>">登录</a>/<a class="normal" href="<?php echo urldecode(Url::urlFormat("/simple/reg"));?>">注册</a></li>
                        <?php }?>
                        <li class="item"><a target="_blank" class="normal" href="<?php echo urldecode(Url::urlFormat("/simple/cart"));?>">购物车</a></li>
                    </ul>
                </div>
                
            </div>
        </div>
        <div class="container head-main">
            <!-- <div class="sub-1 logo"></div> -->
            <div class="sub-1">
            <a href="<?php echo urldecode(Url::urlFormat("/index/index"));?>"><img src="<?php echo urldecode(Url::urlFormat("@$site_logo"));?>" style="margin-top:20px;"></a></div>
            <div class="sub-2">
                <form id="search-form" class="search-form" action="<?php echo urldecode(Url::urlFormat("/"));?>" method="get">
                    <input type="hidden" name="con" value="index">
                    <input type="hidden" name="act" value="search">
                    <input type='hidden' name='tiny_token_' value='<?php echo Tiny::app()->getToken("");?>'/>
                    <input class="search-keyword" id="search-keyword" class="txt-keyword" name="keyword" value="" type="text">
                    <button class="btn-search ">搜索</button>
					<!-- 
                    <p id="tags-list"><?php $item=null; $query = new Query("tags");$query->order = "is_hot desc,sort desc,num desc";$query->limit = "3";$items = $query->find(); foreach($items as $key => $item){?><a href="#"><?php echo isset($item['name'])?$item['name']:"";?></a><?php }?></p>
                    -->
                </form>
            </div>
            <!-- 
            <div class="sub-3">
                <div class="shopping" id="shopping-cart"><i class="icon-cart-32"></i>购物车
                    <div class="dropdown">
                        <ul class="cart-box " id="cart-list">
                            <?php $total=0.00;?><?php if($cart){?><?php foreach($cart as $key => $item){?> <?php $total += $item['amount'];?>
                            <li class="cart-item" id="<?php echo isset($item['id'])?$item['id']:"";?>">
                                <div class="pic">
                                    <a class="card-pic" href="<?php echo urldecode(Url::urlFormat("/index/product/id/$item[goods_id]"));?>" target="_blank" title="<?php echo isset($item['name'])?$item['name']:"";?>"><img src="<?php echo urldecode(Url::urlFormat("@$item[img]"));?>" width="50" height="50"></a>
                                </div>
                                <div class="spec">
                                    <?php foreach($item['spec'] as $key => $spec){?>
                                    <p title="<?php echo isset($spec['name'])?$spec['name']:"";?>:<?php echo isset($spec['value'][2])?$spec['value'][2]:"";?>"><?php echo isset($spec['value'][2])?$spec['value'][2]:"";?></p>
                                    <?php }?>
                                </div>
                                <div class="num"><?php echo isset($item['num'])?$item['num']:"";?></div>
                                <div class="price" title="<?php echo isset($item['amount'])?$item['amount']:"";?>"><?php echo isset($item['amount'])?$item['amount']:"";?></div>
                                <a class="icon-close-16 ie6png" productid="<?php echo isset($item['id'])?$item['id']:"";?>"></a>
                            </li>
                            <?php }?>
                            <?php }else{?>
                            <li><div>购物车中还没有商品，赶紧选购吧！</div></li>
                            <?php }?>

                        </ul>
                        <div class="cart-count">
                            <span>合计：</span><span class="cart-total"><?php echo isset($total)?$total:"";?></span>
                            <a href="<?php echo urldecode(Url::urlFormat("/simple/cart"));?>" class="btn btn-main">去购物车结算</a>
                        </div>
                    </div>
                </div>
            </div>
            -->
        </div>
        <!-- S 导航栏 -->
        <div class="nav">
            <ul class="container">
                <li class="category-box">
                    <div class="link">
                    <a href="javascript:;" style="color: #fff;">全部分类<i class="triangle-b"></i></a>
                    </div>
                    <ul class="category">
                        <?php $current_category_ids='';$parent_category='';?>
                        <?php foreach($category as $key => $categ){?>
                        <li><a>
                            <?php if(isset($categ['id'])){?>
                            <?php $current_category_ids=$categ['id'].',';$parent_category=$categ['id'];?>
                            <?php }?> <?php echo isset($categ['title'])?$categ['title']:"";?><i class="fa">&#xf105;</i></a>
                            <div class="category-sub">
                                <ul class="sub">
                                    <?php foreach($categ['child'] as $key => $child){?>
                                    <li>
                                        <h5><a href="<?php echo urldecode(Url::urlFormat("/index/category/cid/$child[id]"));?>">
                                            <?php if(isset($child['id'])){?>
                                            <?php $current_category_ids.=$child['id'].',';?>
                                            <?php }?>
                                            <?php echo isset($child['title'])?$child['title']:"";?></a></h5>
                                            <p>
                                                <?php if(isset($child['child'])){?>
                                                <?php foreach($child['child'] as $key => $grandson){?>
                                                <a href="<?php echo urldecode(Url::urlFormat("/index/category/cid/$grandson[id]"));?>">
                                                    <?php if(isset($grandson['id'])){?>
                                                    <?php $current_category_ids.=$grandson['id'].',';?><?php }?>
                                                    <?php echo isset($grandson['title'])?$grandson['title']:"";?></a>
                                                    <?php }?>
                                                    <?php }?>
                                                </p>
                                            </li>
                                            <?php }?>
                                        </ul>
                                    </div>
                                </li>
                                <?php }?>
                            </ul>
                        </li>
                        <li class="link"><a href="<?php echo urldecode(Url::urlFormat("/index/index/flag/0"));?>">首页</a></li>
                         
                        <li class="link"><a href="<?php echo urldecode(Url::urlFormat("/index/index/condition_g_s/point/flag/1"));?>">购物积分专区</a></li>
                        <li class="link"><a href="<?php echo urldecode(Url::urlFormat("/index/index/flag/2"));?>">重消积分专区</a></li>
                        
                        <?php $item=null; $query = new Query("nav");$query->where = "type = 'main' and enable = 1";$query->order = "`sort` desc";$items = $query->find(); foreach($items as $key => $item){?>
                        <li class="link"><a href="<?php if(strstr($item['link'],'http://')===false){?><?php echo urldecode(Url::urlFormat("$item[link]"));?><?php }else{?><?php echo isset($item['link'])?$item['link']:"";?><?php }?>" target="<?php if($item['open_type']==1){?>_blank<?php }else{?>_self<?php }?>"><?php echo isset($item['name'])?$item['name']:"";?></a></li>
                        <?php }?>
                    </ul>
                </div>
                <!-- E 导航栏 -->
            </div>
            <!-- E 头部区域 -->
            <!-- S 主控区域 -->
            <div id="main">
               <link type="text/css" rel="stylesheet" href="<?php echo urldecode(Url::urlFormat("#css/product.css"));?>" />
<style type="text/css">
#header .nav li.category-box .category {
    display: block; }
</style>
<div class="zyk-head-right container">
    <div class="banner slider" style="width:740px; height: 366px; padding-top: 5px;" config-data={ "direction": "top"} >
        <ul class="cycle-slideshow">
            <?php $item=null; $query = new Query("ad");$query->where = "number = 'qgiowmka-us4k-p0up-vs3c-blkqmtb7'";$items = $query->find(); foreach($items as $key => $item){?> <?php $lists = unserialize($item['content']);?> <?php foreach($lists as $key => $ad){?>
            <li style="background-image:url(<?php echo urldecode(Url::urlFormat("@$ad[path]"));?>) ">
                <a href="<?php echo urldecode(Url::urlFormat("$ad[url]"));?>" target="_blank"></a>
            </li>
            <?php }?> <?php }?>
        </ul>
    </div>
    <div class="sub-2">
        <div class="news-list">
            <div class="header">商城公告</div>
            <ul class="body">
            	<!-- 只查询公告 -->
                <?php $item=null; $query = new Query("article");$query->where = "category_id = 5";$query->order = "id desc";$query->limit = "14";$items = $query->find(); foreach($items as $key => $item){?>
                <li><a href="<?php echo urldecode(Url::urlFormat("/index/article/id/$item[id]"));?>" target="_blank">[<?php echo isset($categorys[$item['category_id']])?$categorys[$item['category_id']]:'默认';?>]&nbsp;&nbsp;<?php echo TString::msubstr($item['title'],0,12);?></a></li>
                <?php }?>
            </ul>
        </div>
    </div>
    <div class="sub-3 t1-list tjdp_show">
        <ul class="clearfix">
        		<?php $item=null; $query = new Query("my_ad");$query->where = "name like '%轮播底部%'";$query->item = "$item";$items = $query->find(); foreach($items as $key => $item){?>
        			<?php $arr=explode(',',$item['content']);?>
            		<?php foreach($arr as $key => $it){?>
            		<?php $goods_obj=Common::getGoodsInfo($it);?>
        			<li style="margin-top:0px;">
	                <dl class="tjdp-list">
	                    <dt>
	                        <div class="tjdp-pic" style="width:190px;height:105px;">
	                        	<a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$goods_obj[id]"));?>">
	                        	<img src="<?php echo urldecode(Url::urlFormat("@$goods_obj[img]"));?>" width="190px" height="105px" title="<?php echo isset($goods_obj[name])?$goods_obj[name]:"";?>">
	                        	</a>
	                        </div>
	                    </dt>
	                </dl>
	                </li>
	                <?php }?>
        		<?php }?>
           		<!-- 
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/190-76b.png"));?>" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/190-76d.png"));?>" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/190-76f.png"));?>" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/195-154a.png"));?>" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/195-154b.png"));?>" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
            	-->
        </ul>
    </div>
</div>

<div class="top-show container">
    <div class="xt f20 mt10">
    热销商品
    <span class="fr f12">
        
    </span>
    </div>
    <div class="xt_show product1-list clearfix">
            <dl>
                <dd>
            <ul class="clearfix">
                <!-- 
                <li>
                	<img src="<?php echo urldecode(Url::urlFormat("#hql/img/190-76a.png"));?>" width="100%" height="135px">
                </li> 
                -->               
                <?php $item=null; $query = new Query("my_ad");$query->where = "name like '%热销商品%'";$query->item = "$item";$items = $query->find(); foreach($items as $key => $item){?>
        			<?php $arr=explode(',',$item['content']);?>
            		<?php foreach($arr as $key => $it){?>
            		<?php $g_obj=Common::getGoodsInfo($it);?>
        			<li>
        			<a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$g_obj[id]"));?>">
                	 <img src="<?php echo urldecode(Url::urlFormat("@$g_obj[img]"));?>" width="100%" height="135px" title="<?php echo isset($g_obj[name])?$g_obj[name]:"";?>">
                	</a>
                </li>
	                <?php }?>
        		<?php }?>
            </ul>
        </dd>
        </dl>
        </div>

</div>
<!-- S 商品展示 -->



<div class="lists container">
    <?php $items=null; $query = new Query("app_ad");$query->order = "ad_order desc";$query->where = "status = 1 and type = $flag";$query->key = "$c";$query->item = "$items";$items = $query->find(); foreach($items as $c => $items){?>
	<?php $cate_index = $c+1;?>
    <div>
        <div>
            <div style="padding:2px 0;border-bottom: 1px solid;margin-top:30px;">
                <span class="f28"><?php echo isset($cate_index)?$cate_index:"";?>F </span>
                <span class="f18"><?php echo isset($items['name'])?$items['name']:"";?></a></span>
                <span class="category-tags fr f12">
                
                </span>
            </div>
        </div>
    </div>
    
        <div class="item">
            <div id="div1" class="sub-1" style="background-color: red; opacity:0.2;"></div>
            <div id="div2" class="sub-1">
            	
            	<?php foreach($ad_images as $key => $item){?>
                        <?php $ad_imgs=$ad_images[$c]['content'];?>
                        <?php $imgs=unserialize($ad_imgs);?>
            		<img width="100%" height="100%" src="<?php echo $imgs[0][path];?>"/>
            	<?php }?>
            	
            	
            	
               
            </div>
            <div class="sub-2">
                <ul class="index-products">
                   <?php $arrs=explode(',',$items['content']);?>
            		<?php foreach($arrs as $g => $it){?>
            		<?php if($g<8){?>
            		<?php $goods_obj=Common::getGoodsInfo($it);?>
                   <li style="height:300px;">
                        <dl class="product">
                           <dt class="img">
                               <a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$goods_obj[id]"));?>"><img title="<?php echo isset($item['name'])?$item['name']:"";?>" src="<?php echo Common::thumb($goods_obj['img'],150,130);?>" width="150" height="150"></a>
                           </dt>
                           
                           <dt class="title f12"><a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$goods_obj[id]"));?>"><?php echo mb_substr($goods_obj['name'],0,22,'utf-8');?></a>
                           </dt>
                           <dt style="padding-left: 25px;">
                           <?php $buy_name=Common::get_goods_sell_name($goods_obj['category_id']);?>
                           <?php echo isset($buy_name)?$buy_name:"";?>: 
                           <span class="red"><!-- <?php echo isset($currency_symbol)?$currency_symbol:"";?> --><?php echo isset($goods_obj['sell_price'])?$goods_obj['sell_price']:"";?></span>&nbsp;&nbsp;&nbsp;&nbsp;</dt>
                       </dl>
                   </li>
                   <?php }?>
                   <?php }?>
                    
               </ul>
           </div>
        </div>

    <?php }?>
</div>
















<!-- 
<div class="lists container">
    <?php $cate_index=0;?>
    <?php $item=null; $query = new Query("themes");$query->where = "$g_s_id = parent_id";$query->order = "t_px desc";$query->limit = "10";$query->key = "$j";$items = $query->find(); foreach($items as $j => $item){?>
    <?php $cate_index++;?>
    <?php $type=$item['t_type'];?>
    <?php $cate_obj=Common::get_category_obj($type);?>

    <?php $tcolor=$item['t_color'];?>
    <?php $tad=$item['t_ad'];?>
    <?php if($item['ad_show']==1){?>
    
    <?php }?>
    <div>
        <div>
            <div style="padding:2px 0;border-bottom: 1px solid <?php echo isset($tcolor)?$tcolor:"";?>;margin-top:30px;">
                <span style="color: <?php echo isset($tcolor)?$tcolor:"";?>" class="f28"><?php echo isset($cate_index)?$cate_index:"";?>F </span>
                <span class="f18"><?php echo isset($item['t_title'])?$item['t_title']:"";?></a></span>
                <span class="category-tags fr f12">
                
                </span>
            </div>
        </div>
    </div>
    <?php $left_img=['left0.png','left1.png','left2.png','left3.png','left4.png'];?>
    <?php $item=null; $query = new Query("goods_category");$query->where = "id = $type";$items = $query->find(); foreach($items as $key => $item){?>
        <div class="item">
            <div id="div1" class="sub-1" style="background-color: <?php echo isset($tcolor)?$tcolor:"";?>; opacity:0.2;"></div>
            <div id="div2" class="sub-1">
            	<?php $k=$j+1;?>
            	<?php $item=null; $query = new Query("ad");$query->where = "name = '首页分类广告$k'";$items = $query->find(); foreach($items as $key => $item){?> 
            		<?php $lists = unserialize($item['content']);?> 
            		<?php foreach($lists as $key => $ad){?>
            		<img width="100%" height="100%" src="<?php echo isset($ad['path'])?$ad['path']:"";?>"/>
            		
            		<?php }?>
            	<?php }?>
            	
            	
               
            </div>
            <div class="sub-2">
                <ul class="index-products">
                   <?php $g_list = Common::getGoodsListByClassifyId($type);?>
                   <?php foreach($g_list as $i => $item){?>
                   <?php if($i<=7){?>
                   <li style="height:300px;">
                        <dl class="product">
                           <dt class="img">
                               <a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$item[id]"));?>"><img title="<?php echo isset($item['name'])?$item['name']:"";?>" src="<?php echo Common::thumb($item['img'],150,130);?>" width="150" height="150"></a>
                           </dt>
                           
                           <dt class="title f12"><a href="<?php echo urldecode(Url::urlFormat("/index/product/id/$item[id]"));?>"><?php echo mb_substr($item['name'],0,22,'utf-8');?></a>
                           </dt>
                           <dt style="padding-left: 25px;">
                           <?php if($g_s_id==63){?>
                           		消费券:
                           <?php }else{?>
                           		积分:
                           <?php }?>
                           <span class="red"><?php echo isset($currency_symbol)?$currency_symbol:"";?><?php echo isset($item['sell_price'])?$item['sell_price']:"";?></span>&nbsp;&nbsp;&nbsp;&nbsp;</dt>
                       </dl>
                   </li>
                   <?php }?>
                   <?php }?>
                    
               </ul>
           </div>
        </div>
    <?php }?>
    <?php }?>
</div>
-->
   <!-- E 商品展示 -->
           </div>
           <!-- E 主控区域 -->

           <!-- S 底部区域 -->
           
           <div id="footer">
            <div class="promise">
                <div class="clearfix container">
                    <dl>
                        <dt class="icon-1"></dt>
                        <dd>
                            <p class="title">诚信交易</p>
                            <p>所有产品均出正规渠道采购</p>
                        </dd>
                    </dl>
                    <dl>
                        <dt class="icon-2"></dt>
                        <dd>
                            <p class="title">60元包邮</p>
                            <p>全国各地，满60元快递包邮</p>
                        </dd>
                    </dl>
                    <dl>
                        <dt class="icon-3"></dt>
                        <dd>
                            <p class="title">极速更新</p>
                            <p>所有商品信息及时更新</p>
                        </dd>
                    </dl>
                    <dl>
                        <dt class="icon-4"></dt>
                        <dd>
                            <p class="title">7天退换货</p>
                            <p>会员享受7天无理由退换货</p>
                        </dd>
                    </dl>
                    <dl>
                        <dt class="icon-5"></dt>
                        <dd>
                            <p class="title">真实拍摄</p>
                            <p>100%真实拍摄，杜绝虚假</p>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="helps clearfix container">
                <?php $item=null; $query = new Query("help_category");$query->order = "sort desc";$query->limit = "5";$items = $query->find(); foreach($items as $key => $item){?>
                <dl >
                    <dt class="clearfix"><span class="icon-<?php echo isset($item['alias'])?$item['alias']:"";?> fl"></span><a href="javascript:;"><?php echo isset($item['name'])?$item['name']:"";?></a></dt>
                    <?php $help=null; $query = new Query("help");$query->where = "category_id = $item[id]";$query->item = "$help";$query->cache = "true";$query->cacheTime = "1200";$items = $query->find(); foreach($items as $key => $help){?>
                    <dd><a href="<?php echo urldecode(Url::urlFormat("/index/help/id/$help[id]"));?>"><?php echo isset($help['title'])?$help['title']:"";?></a></dd>
                    <?php }?>
                </dl>
                <?php }?>
                <div class="col-contact">
                    <p class="phone">0564-3336121</p>
                    <p>周一至周日 8:00-18:00
                        <br>（仅收市话费）</p>
                        <a class="btn btn-main">24小时在线客服</a>
                    </div>
                </div>
                <div class="copyright">
                    <div class="container bootom">
                        <div class="sub-1">
                        	<!-- 
                            <div class="logo"></div>
                            -->
                        </div>
                        
                        <div class="sub-2">
                        	<!-- 
                            <div><?php $item=null; $query = new Query("nav");$query->where = "type = 'bottom'";$query->order = "`sort` desc";$items = $query->find(); foreach($items as $key => $item){?>
                                <a href="<?php if(strstr($item['link'],'http://')===false){?><?php echo urldecode(Url::urlFormat("$item[link]"));?><?php }else{?><?php echo isset($item['link'])?$item['link']:"";?><?php }?>" target="<?php if($item['open_type']==1){?>_blank<?php }else{?>_self<?php }?>"><?php echo isset($item['name'])?$item['name']:"";?></a>
                                <?php }?></div>
                                -->
                                <!-- 
                                <span>Powered by <a href="#"><b style="color: #e74503"><?php echo isset($site_title)?$site_title:"";?></b></a> © 201-</span></div>
                                -->
                                <div class="sub-3">
                                    <a target="_blank" href="#"><img src="<?php echo urldecode(Url::urlFormat("#images/v-logo-2.png"));?>" alt="诚信网站"></a>
                                    <a target="_blank" href="#"><img src="<?php echo urldecode(Url::urlFormat("#images/v-logo-1.png"));?>" alt="诚信网站"></a>
                                    <a target="_blank" href="#"><img src="<?php echo urldecode(Url::urlFormat("#images/v-logo-3.png"));?>" alt="网上交易保障中心"></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- E 底部区域 -->
                    <script>
                        $(".slider").Slider();
                        $(".category li").mouseenter(function() {
                            $(this).addClass("hover");
                        }).mouseleave(function() {
                            $(this).removeClass("hover");
                        });

                        $("#tags-list a").each(function(){
                            $(this).on("click",function(){
                                $("#search-keyword").val($(this).text());
                                $("#search-form").submit();
                            })
                        });
                        $(".category-box").mouseenter(function(){
                            $(this).addClass("on");
                        }).mouseleave(function(){
                            $(this).removeClass("on");
                        });

                        function updateCart(data){
                            var card_items = '';
                            for(var i in data){
                                var spec = data[i]['spec'];
                                var spec_str = '';
                                for(var k in spec){
                                    spec_str +="<p>"+spec[k]['value'][2]+"</p>";
                                }
                                card_items += '<div class="cart-item" id="'+i+'"><div class="pic"><img src="<?php echo urldecode(Url::urlFormat("@"));?>'+data[i]['img']+'" width="50" height="50"></div><div class="spec">'+spec_str+'</div><div class="num">'+data[i]['num']+'</div><div class="price">'+(data[i]['amount'])+'</div><a class="icon-close-16 ie6png" productid="'+data[i]['id']+'"></a></div>';
                            }
                            $("#cart-list").empty().append(card_items);
                            changeCartInfo();
                            bindDelEvent();
                        }
                        bindDelEvent();
                        function bindDelEvent(){
                            $("#shopping-cart .icon-close-16").on("click",function(){
                                var btn_close = $(this);
                                $.post("<?php echo urldecode(Url::urlFormat("/index/cart_del"));?>",{id:btn_close.attr("productid")},function(){
                                    btn_close.parent().remove();
                                    changeCartInfo();
                                    $("#card-wrap").css({top:1-$("#card-wrap").outerHeight()},"fast");
                                },"json");
                            });
                        }

                        function changeCartInfo(){
                            $(".cart-product-num").text($(".cart-item").size());
                            var total = 0.00;
                            $(".cart-item .price").each(function(){
                                total += parseFloat($(this).text());
                            });
                            $(".cart-total").text(total.toFixed(2));
                            if($(".cart-item").size()==0){
                                $("#cart-list").empty().append('<li><div>购物车中还没有商品，赶紧选购吧！</div></li>');
                            }
                        }
                        $("#tags-list a").each(function(){
                            $(this).on("click",function(){
                                $("#search-keyword").val($(this).text());
                                $("#search-form").submit();
                            })
                        });
                        
                        
                        
                        /**
                        *左侧菜单栏的关闭和打开
                        */
                        $(function(){
                        	/*
                        	$("div[class='box'] h2").toggle(function(){
                        		$(this).next("ul").hide('2000');
                        	},function(){
                        		$(this).next("ul").show('2000');
                        	});
                        	*/
                        	
                        	$("div[class='box'] h2").click(function(){
                        		//$(this).next("ul").hide('2000');
                        		var $ul = $(this).next("ul");
                        		if($ul.is(':visible'))
                        		{
                        			$ul.hide("2000");
                        		}
                        		else
                        		{
                        			$ul.show("2000");	
                        		}
                        		
                        	});
                        	
                        	
                        });
                        
                        
                    </script>
                </body>
                </html>

<!--Powered by TinyRise-->